<div class="admin-content">
<form class="am-form am-form-horizontal">
    <div class="am-form-group">
        <div class="am-u-sm-10 am-u-sm-offset-1">
            <a type="button" class="am-btn am-btn-secondary" href="downloads/农产品商品导入.xlsx">下载导入模板
            </a>
        </div>
    </div>
    <div class="am-form-group">
        <div class="am-form-group am-form-file am-u-sm-offset-1">
            <button type="button" class="am-btn am-btn-danger am-btn-sm">
                <i class="am-icon-cloud-upload"></i> 商品管理，选择要导入的文件，excel表格</button>
            <input id="doc-form-file" type="file" name="xlfile" multiple>
        </div>
        <div class="am-u-sm-offset-2"  id="file-list"></div>
    </div>
    <div class="am-form-group">
        <div class="am-u-sm-10 am-u-sm-offset-1">
            <button type="submit" class="am-btn am-btn-primary" ng-click="readFile()">提交查看
            </button>
        </div>
    </div>
    <div class="am-form-group" ng-show="alert_msg">
        <div class="am-alert am-alert-danger" data-am-alert>
            <button type="button" class="am-close" ng-click="close_alert()">&times;</button>
            <p>{{alert_msg}}</p>
        </div>
    </div>
</form>
    <table class="am-table am-table-striped am-table-hover table-main">
        <thead>
        <tr>
            <th class="table-title">商店名称</th>
            <th class="table-title">商品名称</th>
            <th class="table-title">商品单位</th>
            <th class="table-type">商品分类</th>
            <th class="table-author am-hide-sm-only">商品图片</th>
            <th class="table-date am-hide-sm-only">商品价格</th>
            <th class="table-date am-hide-sm-only">商品库存量</th>
            <th class="table-set">商品描述</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="good in goods">
            <td>{{good.shopname}}</td>
            <td>{{good.name}}</td>
            <td>{{good.unit}}</td>
            <td>{{good.cataname}}</td>
            <td class="am-hide-sm-only">{{good.pic}}</td>
            <td class="am-hide-sm-only">{{good.price|currency:'￥'}}</td>
            <td class="am-hide-sm-only">{{good.stock}}</td>
            <td>{{good.description}}</td>
        </tr>
        </tbody>
    </table>
    <div class="am-form-group">
        <div class="am-u-sm-10 am-u-sm-offset-8">
            <button type="submit" class="am-btn am-btn-success" ng-disabled="!enable_submit" ng-click="submit()">确认录入
            </button>
        </div>
    </div>
</div>